// ========================================================
// Des：聊天信息
// Autor：师哥吃你个小鸡腿 
// Email：hf_8220@163.com 
// CreateTime：2024/01/16 17:37:53
// 版 本：v 1.0
// ========================================================
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Cell : MonoBehaviour
{
    private Text txtName;
    private Text txtInfo;
    // Start is called before the first frame update
    void Start()
    {
        txtName = transform.GetChild(0).GetComponent<Text>();
        txtInfo = transform.GetChild(1).GetComponent<Text>();
    }


    public void SetInfo(string name, string info)
    {
        txtName.text = name + ":";
        txtInfo.text = info;
    }
}
